home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / Filezilla Server / FileZilla_Server-0_9_41.exe / source / interface / StatusCtrl.h < prev    next >
C/C++ Source or Header  |  2011-11-06  |  3KB  |  109 lines

  1. #if !defined(AFX_STATUSCTRL_H__CBCF375F_27B2_4A35_B7CE_BD0893925945__INCLUDED_)
  2. #define AFX_STATUSCTRL_H__CBCF375F_27B2_4A35_B7CE_BD0893925945__INCLUDED_
  3.  
  4. #if _MSC_VER > 1000
  5. #pragma once
  6. #endif // _MSC_VER > 1000
  7. // StatusCtrl.h : Header-Datei
  8. //
  9.  
  10. // -----------------------------------------------------------------
  11. // Colour Codes:
  12. // -----------------------------------------------------------------
  13.  
  14.  
  15. #define COLOUR_WHITE        0
  16. #define COLOUR_BLACK        1
  17. #define COLOUR_BLUE            2
  18. #define COLOUR_GREEN        3
  19. #define COLOUR_LIGHTRED        4
  20. #define COLOUR_BROWN        5
  21. #define COLOUR_PURPLE        6
  22. #define COLOUR_ORANGE        7
  23. #define COLOUR_YELLOW        8
  24. #define COLOUR_LIGHTGREEN    9
  25. #define COLOUR_CYAN            10
  26. #define COLOUR_LIGHTCYAN    11
  27. #define COLOUR_LIGHTBLUE    12
  28. #define COLOUR_PINK            13
  29. #define COLOUR_GREY            14
  30. #define COLOUR_LIGHTGREY    15
  31.  
  32. /////////////////////////////////////////////////////////////////////////////
  33. // Fenster CStatusCtrl 
  34.  
  35. class CStatusView;
  36. class CStatusCtrl : public CRichEditCtrl
  37. {
  38.     friend class CStatusView;
  39.  
  40. public:
  41.     CStatusCtrl();
  42.     virtual ~CStatusCtrl();
  43.  
  44.     void ShowStatus(LPCTSTR status, int nType);
  45.     void Run();
  46.  
  47. //    virtual BOOL Create( DWORD in_dwStyle, const RECT& in_rcRect, 
  48. //                         CWnd* in_pParentWnd, UINT in_nID );
  49.  
  50.     // Generierte Nachrichtenzuordnungsfunktionen
  51. protected:
  52.  
  53.     void DoStreamIn(int extraFlags = 0);
  54.     static DWORD __stdcall CStatusCtrl::RichEditStreamInCallback(DWORD_PTR dwCookie, LPBYTE pbBuff, LONG cb, LONG *pcb);
  55.  
  56.     struct t_buffer
  57.     {
  58.         CString status;
  59.         int pos;
  60.         int type;
  61.     };
  62.  
  63.     std::list<t_buffer> m_statusBuffer;
  64.     int m_headerPos;
  65.  
  66.     BOOL m_bEmpty;
  67.     UINT_PTR m_nTimerID;
  68.     int m_runTimer;
  69.     int m_nMoveToBottom;
  70.  
  71.     BOOL m_doPopupCursor;
  72.     const static COLORREF m_ColTable[16]; // Colour Table
  73.  
  74.     CStringA m_RTFHeader;
  75.  
  76.     //{{AFX_MSG(CStatusCtrl)
  77.     afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  78.     afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  79.     afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
  80.     afx_msg void OnOutputcontextClearall();
  81.     afx_msg void OnOutputcontextCopytoclipboard();
  82.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  83.     afx_msg void OnTimer(UINT_PTR nIDEvent);
  84.     afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  85.     afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
  86.     //}}AFX_MSG
  87.  
  88.     DECLARE_MESSAGE_MAP()
  89. };
  90.  
  91. /*class _AFX_RICHEDITEX_STATE
  92. {
  93. public:
  94.     _AFX_RICHEDITEX_STATE();
  95.     virtual ~_AFX_RICHEDITEX_STATE();
  96.  
  97.     HINSTANCE m_hInstRichEdit20 ;
  98. };
  99.  
  100. BOOL PASCAL AfxInitRichEditEx();
  101. */
  102.  
  103. /////////////////////////////////////////////////////////////////////////////
  104.  
  105. //{{AFX_INSERT_LOCATION}}
  106. // Microsoft Visual C++ fⁿgt unmittelbar vor der vorhergehenden Zeile zusΣtzliche Deklarationen ein.
  107.  
  108. #endif // AFX_STATUSCTRL_H__CBCF375F_27B2_4A35_B7CE_BD0893925945__INCLUDED_
  109.